package com.ws.gulimall.product.convert;

import com.ws.gulimall.product.entity.CategoryEntity;
import com.ws.gulimall.product.vo.CategoryEntityVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author ws
 * @create 2022/8/9 16:06
 */
@Mapper
public interface CategoryConvert {
    CategoryConvert mapper =  Mappers.getMapper(CategoryConvert.class);

    CategoryEntityVo toTarget(CategoryEntity s);

    List<CategoryEntityVo> toTarget(List<CategoryEntity> s);
}
